using IM.Easy.Infrastructure.Query;
using System.ComponentModel.DataAnnotations;


namespace IM.Easy.Workflow.Dtos
{
    /// <summary>
    /// 任务实例表查询实体
    /// </summary>
    public class WorkflowTaskQueryDto : QueryBase
    {
    }

    /// <summary>
    /// 任务实例表dto
    /// </summary>
    public class WorkflowTaskDto
    {
        /// <summary>
        /// 任务实例的唯一标识
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 关联的工作流ID
        /// </summary>
        public string WorkflowId { get; set; }
        /// <summary>
        /// 对应的步骤ID
        /// </summary>
        public int StepId { get; set; }
        /// <summary>
        /// 任务当前状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 被指派的用户ID
        /// </summary>
        public long AssignedUserId { get; set; }
        /// <summary>
        /// 任务备注信息
        /// </summary>
        public string Comment { get; set; }
        /// <summary>
        /// 任务创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
        /// <summary>
        /// 任务完成时间
        /// </summary>
        public DateTime CompletedTime { get; set; }
    }

    /// <summary>
    /// 流程创建实体
    /// </summary>
    public class WorkflowTaskCreateDto
    {

    }
}
